package com.dacd.android.multi.scan.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.dacd.android.multi.scan.R;
import com.dacd.android.multi.scan.bean.ScanResultBean;

/**
 * Created by soule on 2017/9/22.
 */

public class ResultActivity extends Activity {

    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result);
        Intent intent = getIntent();
        ScanResultBean scanResultBean = (ScanResultBean) intent.getSerializableExtra("resultBean");
        textView = (TextView) findViewById(R.id.ar_tv);
        textView.setText("3-1:" + scanResultBean.getMsg3_1() + "\n"
                + "3-2:" + scanResultBean.getMsg3_2() + "\n"
                + "3-3:" + scanResultBean.getMsg3_3() + "\n"
                + "2-1:" + scanResultBean.getMsg2_1() + "\n"
                + "2-2:" + scanResultBean.getMsg2_2() + "\n");
    }
}
